﻿<%@ Page Language="vb" AutoEventWireup="false" MaintainScrollPositionOnPostback="true"    CodeBehind="ServiceHistory.aspx.vb" Inherits="ccapps.ServiceHistory" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>

    
      <style type="text/css">
	.prompt { BACKGROUND-COLOR: #a2547f; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 20px; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none }


        .button02 {
			border-style: none;
              border-color: inherit;
              border-width: 1px;
              font-family: Verdana, Arial; 
		      font-size : 10px; 
		      font-weight : bold;
		      color: #336699;
		      padding : 3px;	
		      text-align:center;
		      text-decoration: none;
              float:right;
              }
          .soladaya { 
              float:left; 
              text-align:left; 
            
          }

                       .bir 
{
	font-family: Arial, Helvetica;
	color: #000000;
	font-size: 12px;
	text-decoration: none;
	width: 225px;
	border-top: 1px solid #dfdfdf;
	padding-left: 10px;
	background-color: #e6e6fa;	
} 
.iki 
{
	        BACKGROUND-COLOR: #f5f5f5;
            FONT-FAMILY: Arial, Helvetica;
            COLOR: #000000;
            FONT-SIZE: 12px;
            TEXT-DECORATION: none; 
			width:225px;
            border-collapse:collapse
}
		
		  .auto-style1 {
           
       
            
              background-color: #e6e6fa;
           
          }
          .auto-style2 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 675px;
              border-collapse: collapse;
              height: 17px;
          }
          .auto-style3 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 225px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
              height: 20px;
          }
          .auto-style4 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 225px;
              border-collapse: collapse;
              height: 20px;
          }
		
		  .auto-style7 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 125px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
          }
		
		  #Table2 {
              width: 941px;
          }

		
		  * {
  margin: 0;
  padding: 0;
  }

          .auto-style9 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 236px;
              border-collapse: collapse;
          }
          .auto-style10 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 236px;
              border-collapse: collapse;
              height: 20px;
          }
          .auto-style11 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 901px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
          }
          		
		  #dtgrid {
              width: 937px;
          }
          		
		  .auto-style12 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 935px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
          }
             .hidden
     {
         display:none;
     }
          		
		  .auto-style13 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 225px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
              height: 21px;
          }
          .auto-style14 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 225px;
              border-collapse: collapse;
              height: 21px;
          }
          		
		  .auto-style15 {
              BACKGROUND-COLOR: #a2547f;
              PADDING-LEFT: 10px;
              PADDING-RIGHT: 10px;
              FONT-FAMILY: Arial, Helvetica, sans-serif;
              HEIGHT: 20px;
              COLOR: #ffffff;
              FONT-SIZE: 11px;
              FONT-WEIGHT: bold;
              TEXT-DECORATION: none;
              width: 917px;
          }
          		 .text-alan { 
            padding-top:8px; 
            width:250px; 
            height:26px;
            

        }
		  </style> 
    <script> 
        function deneme() {
           
        } 
    </script>

    


<body>
    <form id="form2" runat="server">
      <asp:Label ID="ErrorMes" runat="server"></asp:Label>
          <table width="939">
  <tr>
    <td  colspan="3" class="prompt">Servis Geçmişi</td>

  </tr>
  <tr>
    <td width="203" class="auto-style7">Custcode&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtCustcode" ErrorMessage="CustCode Alanın Girilmesi Zorunludur." Font-Size="Large" ForeColor="Red" ValidationGroup="vldcustcode">( * )</asp:RequiredFieldValidator>
      </td>
    <td width="340" class="iki">
      <asp:TextBox ID="TxtCustcode" runat="server" onkeydown = "return (event.keyCode!=13)" Width="385px" CssClass="text-alan"></asp:TextBox>
      </td>
    <td width="380" class="iki">    
      <asp:Button ID="BtnCustcode" runat="server" CssClass="button02" Text="Doğrula" ValidationGroup="vldcustcode" Height="20px" Width="68px" />
      </td>
  </tr>
               <tr>
    <td width="203" class="auto-style7">MSISDN&nbsp;
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtMsisdn" ErrorMessage="MSISDN Alanının Girilmesi Zorunludur." Font-Size="Large" ForeColor="Red" ValidationGroup="vldMsisdn">( * )</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtMsisdn" ErrorMessage="Format:5051234567" ValidationExpression="^[0-9]+$" Font-Size="Large" ForeColor="Red" ValidationGroup="vldMsisdn">(*)</asp:RegularExpressionValidator>
      </td>
    <td width="340" class="iki">
      <asp:TextBox ID="TxtMsisdn" runat="server" MaxLength="10" onkeydown = "return (event.keyCode!=13)" Width="385px" CssClass="text-alan"></asp:TextBox>
      </td>
    <td width="380" class="iki">    
      <asp:Button ID="BtnMsisdn" runat="server" CssClass="button02" Text="Doğrula" ValidationGroup="vldMsisdn" Height="20px" Width="68px" />
      </td>
  </tr>
</table>
        <table id="contractlist" runat="server" visible="false"> 
            <tr> 
                <td colspan="4" class="auto-style15">Kontrat Listesi </td>
            </tr> 
            <tr> 
                <td class="auto-style3"> 

                <asp:GridView ID="GridView5" runat="server"  AutoGenerateColumns="False" style="margin-top: 0px"  BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AllowPaging="True" Width="924px">
            <Columns>
                
      
                  <asp:CommandField SelectText="Seçiniz" ShowSelectButton="True" />
                
      
                  <asp:BoundField DataField="COID" HeaderText="COID"  ControlStyle-CssClass="soladaya"
              SortExpression="COID">
                     
<ControlStyle CssClass="soladaya"></ControlStyle>
                     
                     </asp:BoundField>
                <asp:BoundField DataField="STATUS" HeaderText="Kontrat Durumu "  ControlStyle-CssClass="soladaya"
              SortExpression="STATUS">
                     
<ControlStyle CssClass="soladaya"></ControlStyle>
                     
                     </asp:BoundField>
                <asp:BoundField DataField="SIGNED" HeaderText="Aktivasyon Tarihi "  ControlStyle-CssClass="soladaya"
              SortExpression="SIGNED">
                     
<ControlStyle CssClass="soladaya"></ControlStyle>
                     
                     </asp:BoundField>
                <asp:BoundField DataField="RTDES" HeaderText="Tarife "  ControlStyle-CssClass="soladaya"
              SortExpression="RTDES">
                     
<ControlStyle CssClass="soladaya"></ControlStyle>
                     
                     </asp:BoundField>
                 
    </Columns>

            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#a2547f" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left"/>
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>

                </td>
            </tr>
        </table>
        <table id="Table2" runat="server" visible="false">
  <tr>
    <td colspan="4" class="prompt">Bilgiler</td>
  </tr>
  <tr>
    <td class="auto-style3">Müşteri Bilgileri</td>
    <td class="auto-style2" colspan="3">    
        <asp:Label ID="LblCustomer" runat="server"></asp:Label>
        <asp:Label ID="Lbltmcode" runat="server" Visible="False"></asp:Label>
      </td>
  
  </tr>
  <tr>
    <td class="bir">Contract ID</td>
    <td class="iki">    
        <asp:Label ID="LblCoid" runat="server"></asp:Label>
      </td>
    <td class="iki">&nbsp;</td>
    <td class="iki">    
                            &nbsp;</td>
  </tr>
  <tr>
    <td class="auto-style3">Sözleşme Durumu</td>
    <td class="auto-style4">    
                            <asp:Label ID="LblTotal" runat="server" Text="	
"></asp:Label>
                            <asp:Label ID="LblActive" runat="server"></asp:Label>
      </td>
    <td class="auto-style3">&nbsp;</td>
    <td class="auto-style4">    
                            <asp:Label ID="LblUnBillUsage" runat="server" Text="	
"></asp:Label>
                            </td>
  </tr>
  <tr>
    <td class="auto-style13">Son Yapılan İşlem Tarihi</td>
    <td class="auto-style14">    
                            <asp:Label ID="LblPrevBalance" runat="server" Text="
"></asp:Label>
        <table cellspacing="0" cellpadding="0">
                              <tr>
                                <TD><DIV></DIV></TD>
                                <TD colspan="1">
                                    <asp:Label ID="LblSigned" runat="server"></asp:Label>
                                  </TD>
                              </tr>
      </table></td>
    <td class="auto-style13"></td>
    <td class="auto-style14">    
                            </td>
  </tr>
  <tr>
    <td class="bir">Sözleşme Dili</td>
    <td class="iki">    
                            <asp:Label ID="Label1" runat="server" Text="
"></asp:Label>
                            <asp:Label ID="LblLang" runat="server"></asp:Label>
      </td>
    <td class="bir">Statu Değişiklik Nedeni</td>
    <td class="iki">    
        <asp:Label ID="LblReason" runat="server"></asp:Label>
      </td>
  </tr>
  <tr>
    <td class="bir">Tarife</td>
    <td class="iki">    
                            <asp:Label ID="LblRateplan" runat="server"></asp:Label>
      </td>
    <td class="bir">Önceki Sözleşmenin Son Tarihi</td>
    <td class="iki">    
                            --</td>
  </tr>
  <tr>
    <td class="bir">Yeniden Faturalanacak</td>
    <td class="iki">    
                            <asp:Label ID="Label5" runat="server" Text="
"></asp:Label>
      No</td>
    <td class="bir">Alternatif Tarife</td>
    <td class="iki">    
      --</td>
  </tr>
  <tr>
    <td colspan="4" class="prompt">Sözleşmedeki Servis Grupları</td>
  </tr>
  <tr>
    <td colspan="3" class="bir">    
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" Width="387px">
        </asp:RadioButtonList>
                            

      </td>
      <td style="background-color: #e6e6fa;	"> <asp:Button ID="Button9" runat="server" Text="Ara" CssClass="button02" Height="20px" Width="68px" /></td>
  </tr>
            </table>
        <table id="Table3" runat="server" visible="false">
             <tr> 
                     <td colspan="4" style="padding:0px"  class="auto-style12"> 
                   
                           <asp:GridView ID="GridView2" runat="server" OnRowDataBound="GridView2_RowDataBound" AutoGenerateColumns="False" style="margin-top: 0px"  BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AllowPaging="True" PageSize="30" Width="942px">
            <Columns>
                
      
                <asp:CommandField ShowSelectButton="True" SelectText="Seçiniz" />
                  <asp:BoundField DataField="SNCODE" HeaderText="Servis " 
              SortExpression="SNCODE">
                        <ItemStyle CssClass="hidden"/>
                     </asp:BoundField>
        <asp:BoundField DataField="DES" HeaderText="Profil" 
            SortExpression="DES" />
        <asp:BoundField DataField="PROFILE" HeaderText="Statü" 
            SortExpression="PROFILE" />
                <asp:BoundField DataField="PROFILEID" HeaderText="Statü" 
            SortExpression="PROFILEID" Visible="false" />
                 <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text="Label" Visible="false" ></asp:Label>
                    <asp:Image ID="Image1" runat="server" />
                </ItemTemplate>
                      <HeaderTemplate>
               Askıda Kalan Statu
         </HeaderTemplate>


                </asp:TemplateField>
                 <asp:TemplateField>
                <ItemTemplate>
                    
                    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Bir Kerelik Ücretlendirme
         </HeaderTemplate>


                </asp:TemplateField>
                  <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Tekrar Eden Ücretlendirme
         </HeaderTemplate>


                </asp:TemplateField>
                  <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Kalan Kredi
         </HeaderTemplate>


                </asp:TemplateField>
                   <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label7" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Ödeme Seçeneği
         </HeaderTemplate>


                </asp:TemplateField>

                    <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label8" runat="server" Text="Postpaid"></asp:Label>
                    <%--<asp:Label ID="Label9" runat="server" Text=""></asp:Label>--%>
                </ItemTemplate>
                      <HeaderTemplate>
              
         </HeaderTemplate>


                </asp:TemplateField>
    </Columns>

            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#a2547f" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left"/>
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
                           <%--<asp:Label ID="Label9" runat="server" Text=""></asp:Label>--%><%--<asp:Label ID="Label9" runat="server" Text=""></asp:Label>--%>
                         
                   
                     </td>
                 </tr>
            </table>
        <table id="Table4" runat="server" visible="false">
             <tr>
    <td colspan="4" class="prompt">Service Detaylar</td>
                   
  </tr>
            <tr>
                 <td colspan="4" class="prompt">Servis Bilgileri</td>
            </tr>
            <tr>
            <td class="bir">Servis</td>
    <td class="auto-style2" colspan="3">    
        <asp:Label ID="LblServiceName" runat="server"></asp:Label>
                </td>
  
  </tr>
  <tr>
    <td class="bir">Tarife</td>
    <td class="iki">    
        <asp:Label ID="LblRtPlan" runat="server"></asp:Label>
        <asp:Label ID="LblSncode" runat="server" Visible="False"></asp:Label>
      </td>
    <td class="bir"><span>Profil</span></td>
    <td class="auto-style9">    
                            <asp:Label ID="LblProfile" runat="server"></asp:Label>
      </td>
  </tr>
  <tr>
    <td class="auto-style3">
        <div>
            Deneme Periyodunun Son Tarihi</div>
      </td>
    <td class="auto-style4">    
                            <asp:Label ID="Label2" runat="server" Text="	
"></asp:Label>
                            --</td>
    <td class="auto-style3">Ana Servis</td>
    <td class="auto-style10">    
                            <asp:Label ID="LblCoreService" runat="server"></asp:Label>
      </td>
  </tr>
             <tr>
                 <td colspan="4" class="prompt">Status</td>
            </tr>

          
     
  <tr>
    <td class="bir">
        <div>
            Mevcut Durumu</div>
      </td>
    <td class="iki">    
        <asp:Label ID="LblCurrentStatus" runat="server"></asp:Label>
      </td>
    <td class="bir">
        <div>
            <span>Pending durumu</span></div>
      </td>
    <td class="auto-style9">    
                            --</td>
  </tr>
  <tr>
    <td class="auto-style3">
        <div>
            <div>
                Mevcut Durum Nedeni</div>
        </div>
      </td>
    <td class="auto-style4">    
                            <asp:Label ID="Label6" runat="server" Text="	
"></asp:Label>
                            --</td>
    <td class="auto-style3">
        <table cellpadding="0" cellspacing="0" class="DABgForm">
            <tr>
                <td class="DAColLabel">
                    <div>
                        Geçerli olduğu Tarih</div>
                </td>
                <td class="DAColData" colspan="1">
                    <div class="DAReadOnlyDIVLL">
                    </div>
                </td>
            </tr>
        </table>
      </td>
    <td class="auto-style10">    
                            <asp:Label ID="LblValidFrom" runat="server"></asp:Label>
                            <asp:Label ID="Label9" runat="server" Visible="False"></asp:Label>
                            <asp:Label ID="Label10" runat="server" Visible="False"></asp:Label>
      </td>
  </tr>
          
            <tr> 
                  <td class="auto-style1" colspan="4">
                            
                     <asp:GridView ID="GridView4" runat="server"  AutoGenerateColumns="False" style="margin-top: 0px" Width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" PageSize="30" Visible="False">
            <Columns>
                 <asp:BoundField DataField="PARAMETER_ID" HeaderText="Service "  ControlStyle-CssClass="soladaya" Visible="false"
              SortExpression="PARAMETER_ID">
                     
                     </asp:BoundField>
      
                  <asp:BoundField DataField="prm_des" HeaderText="Service "  ControlStyle-CssClass="soladaya"
              SortExpression="prm_des">
                     
                     </asp:BoundField>
                 <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text=""  ></asp:Label>
                </ItemTemplate>
                      <HeaderTemplate>
               Value
         </HeaderTemplate>


                </asp:TemplateField>
    </Columns>

            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#a2547f" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left"/>
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
                            
                 </td>
            </tr>
             <tr>

            <td class="auto-style1" colspan="4">
                            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="button02" Font-Underline="False" PostBackUrl="#sonagit">Status History</asp:LinkButton>
                 </td>
    
  
  </tr>
            </table>
        <table id="Tableson" runat="server" visible="false">
              <tr> 
                     <td colspan="4" style="padding:0px"  class="auto-style11"> 

                  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="margin-top: 0px" Width="104%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
            <Columns>
                
        <asp:BoundField DataField="status" HeaderText="Statü" 
             Visible="true"   SortExpression="status" />
       
                <asp:BoundField DataField="date" HeaderText="Geçerlilik Tarihi" 
             Visible="true"   SortExpression="date" />
                
                <asp:BoundField DataField="date2" HeaderText="Giriş Tarihi" 
             Visible="true"   SortExpression="date2" />

            
    </Columns>

            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#a2547f" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left"/>
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
                   
                        
                   
                     </td>
                  </tr>
            
</table>
           <a name="sonagit" id="A1"></a>


      <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="vldcustcode" />
   

        <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="vldMsisdn" />
   

    </form>
</body>
</html>
